package cn.wolfcode.service;

import cn.wolfcode.domain.Role;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IRoleService {

    void insert(Role role) ;

    void delete(Long id) ;

    void update(Role role) ;

    Role selectById(Long id) ;

    List<Role> selectAll();

    PageInfo<Role> query(QueryObject qo);

    void insertRelation(Role role, Long[] ids);

    List<Role> selectRole(Long id);

    void updateRelation(Role role, Long[] ids);

    List<Role> selectOwnRole(Long id);
}
